import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_ahj_app/base/utils/textUtils.dart';
import 'package:flutter_ahj_app/base/values/SQColor.dart';
import 'package:flutter_ahj_app/base/values/dimens.dart';

import 'LoadingWidgetCenter.dart';

class BaseWidget extends StatelessWidget {
  Widget body;
  bool offState;

  BaseWidget(this.body, this.offState);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        body,
        Offstage(
          offstage: offState,
          child: Center(
            child: LoadingWidgetCenter(),
          ),
        ),
      ],
    );
  }
}
